import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'

const routes = [
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path: '/',
    name: "Login",
    component: () => import('../views/Login.vue')
  },
  {
    path: "/member",
    name: "MemberPage",
    component: () => import('../views/Member.vue')
  },
  {
    path: '/personal',
    name: 'Personal',
    component: () => import('../views/Personal')
  },
  {
    path: '/rehearse',
    name: 'Rehearse',
    component: () => import('../views/Rehearse')
  },
  {
    path: '/site',
    name: 'Site',
    component: () => import('../views/Site')
  },
  {
    path: '/apply_for_absent/:key',
    name: 'ApplyForAbsent',
    component: () => import('../views/ApplyForAbsent')
  },
  {
    path: '/instrument',
    name: 'Instrument',
    component: () => import('../views/Instrument')
  },
  {
    path: '/clothing',
    name: 'Clothing',
    component: () => import('../views/Clothing')
  },
  {
    path: '/award',
    name: 'Award',
    component: () => import('../views/Award')
  },
  {
    path: '/operation_log',
    name: 'OperationLog',
    component: () => import('../views/OperationLog')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
